﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DDD4Fun.Bridge
{
    //调用接口的抽象类 接口作为类参数 组合关系
    public abstract class ScoreRecorder
    {
        protected Operator _impl;

        public ScoreRecorder(Operator impl)
        {
            _impl = impl;
        }

        public void Work1()
        {
            //do something
            _impl.add();
            //do something
        }

        public void Work2()
        {
            //do something
            _impl.minus();
            //do something
        }

        public abstract void Work3();
        
    }
}
